/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.system.util;

import jakarta.validation.groups.Default;

/**
 * 分组校验
 *
 * @author Charles7c
 * @since 2024/7/3 22:01
 */
public interface ValidateGroup extends Default {

    /**
     * 分组校验-增删改查
     */
    interface Storage extends ValidateGroup {
        /**
         * 本地存储
         */
        interface Local extends Storage {
        }

        /**
         * 兼容S3协议存储
         */
        interface S3 extends Storage {
        }

        /**
         * 阿里云OSS
         */
        interface AliYunOss extends Storage {
        }

        /**
         * 阿里云点播
         */
        interface AliYunVod extends Storage {
        }
    }

    /**
     * 分组校验-请求的增删改查
     */
    interface ReqGroup extends ValidateGroup {
        /**
         * 保存
         */
        interface SAVE extends ReqGroup {
        }

        /**
         * 更新
         */
        interface UPDATE extends ReqGroup {
        }

        /**
         * 删除
         */
        interface DEL extends ReqGroup {
        }

        /**
         * 状态改变
         */
        interface STATE extends ReqGroup {
        }

        /**
         * 备用1
         */
        interface EXTRA1 extends ReqGroup {
        }

        /**
         * 备用2
         */
        interface EXTRA2 extends ReqGroup {
        }
    }
}